.class Lcom/waiqin365/lightapp/product/a/by;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/product/view/e;


# instance fields
.field final synthetic a:Landroid/widget/RelativeLayout;

.field final synthetic b:Landroid/widget/LinearLayout;

.field final synthetic c:Landroid/widget/CheckBox;

.field final synthetic d:Lcom/waiqin365/lightapp/product/d/f;

.field final synthetic e:Landroid/widget/TextView;

.field final synthetic f:Lcom/waiqin365/lightapp/product/a/bw;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/product/a/bw;Landroid/widget/RelativeLayout;Landroid/widget/LinearLayout;Landroid/widget/CheckBox;Lcom/waiqin365/lightapp/product/d/f;Landroid/widget/TextView;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/a/by;->f:Lcom/waiqin365/lightapp/product/a/bw;

    iput-object p2, p0, Lcom/waiqin365/lightapp/product/a/by;->a:Landroid/widget/RelativeLayout;

    iput-object p3, p0, Lcom/waiqin365/lightapp/product/a/by;->b:Landroid/widget/LinearLayout;

    iput-object p4, p0, Lcom/waiqin365/lightapp/product/a/by;->c:Landroid/widget/CheckBox;

    iput-object p5, p0, Lcom/waiqin365/lightapp/product/a/by;->d:Lcom/waiqin365/lightapp/product/d/f;

    iput-object p6, p0, Lcom/waiqin365/lightapp/product/a/by;->e:Landroid/widget/TextView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/waiqin365/base/db/offlinedata/s;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/by;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/jxccache/g;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/g;->e(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/g;->f(Ljava/lang/String;)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 12

    const-wide/16 v6, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/by;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/jxccache/g;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    const/4 v1, 0x0

    move v3, v1

    move-wide v4, v6

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/product/a/by;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v1

    if-ge v3, v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/a/by;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    instance-of v1, v2, Lcom/waiqin365/lightapp/product/view/CountView;

    if-eqz v1, :cond_1

    move-object v1, v2

    check-cast v1, Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/view/CountView;->e()Lcom/waiqin365/base/db/offlinedata/s;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/db/offlinedata/s;->e()Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    check-cast v2, Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/view/CountView;->c()Ljava/lang/Double;

    move-result-object v1

    invoke-static {v1, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    mul-double/2addr v8, v10

    add-double/2addr v4, v8

    :cond_1
    add-int/lit8 v1, v3, 0x1

    move v3, v1

    goto :goto_1

    :cond_2
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->e(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/g;->b(Ljava/lang/Double;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/a/by;->c:Landroid/widget/CheckBox;

    invoke-virtual {v1}, Landroid/widget/CheckBox;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/product/d/f;

    const-string/jumbo v2, "cx_pd_zc_cache"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/by;->f:Lcom/waiqin365/lightapp/product/a/bw;

    iget-object v3, v3, Lcom/waiqin365/lightapp/product/a/bw;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->g()Ljava/lang/Double;

    move-result-object v2

    invoke-static {v2, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v2

    iget-object v4, p0, Lcom/waiqin365/lightapp/product/a/by;->d:Lcom/waiqin365/lightapp/product/d/f;

    invoke-virtual {v4}, Lcom/waiqin365/lightapp/product/d/f;->M()Ljava/lang/Double;

    move-result-object v4

    invoke-static {v4, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v4

    sub-double v6, v2, v4

    :cond_3
    :goto_2
    invoke-static {v6, v7}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/base/db/jxccache/g;->d(Ljava/lang/Double;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/by;->e:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/by;->f:Lcom/waiqin365/lightapp/product/a/bw;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v3

    const v4, 0x7f08025a

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, "\uff1a"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/d/f;->a()Ljava/lang/String;

    move-result-object v1

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/by;->f:Lcom/waiqin365/lightapp/product/a/bw;

    iget-boolean v3, v3, Lcom/waiqin365/lightapp/product/a/bw;->i:Z

    invoke-static {v1, v6, v7, v3}, Lcom/waiqin365/lightapp/product/e/b;->a(Ljava/lang/String;DZ)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_4
    const-string/jumbo v2, "cx_pd_hh_cache"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/by;->f:Lcom/waiqin365/lightapp/product/a/bw;

    iget-object v3, v3, Lcom/waiqin365/lightapp/product/a/bw;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->g()Ljava/lang/Double;

    move-result-object v2

    invoke-static {v2, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v2

    iget-object v4, p0, Lcom/waiqin365/lightapp/product/a/by;->d:Lcom/waiqin365/lightapp/product/d/f;

    invoke-virtual {v4}, Lcom/waiqin365/lightapp/product/d/f;->O()Ljava/lang/Double;

    move-result-object v4

    invoke-static {v4, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v4

    sub-double v6, v2, v4

    goto :goto_2

    :cond_5
    const-string/jumbo v2, "cx_pd_th_cache"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/by;->f:Lcom/waiqin365/lightapp/product/a/bw;

    iget-object v3, v3, Lcom/waiqin365/lightapp/product/a/bw;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->g()Ljava/lang/Double;

    move-result-object v2

    invoke-static {v2, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v2

    iget-object v4, p0, Lcom/waiqin365/lightapp/product/a/by;->d:Lcom/waiqin365/lightapp/product/d/f;

    invoke-virtual {v4}, Lcom/waiqin365/lightapp/product/d/f;->N()Ljava/lang/Double;

    move-result-object v4

    invoke-static {v4, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v4

    sub-double v6, v2, v4

    goto/16 :goto_2
.end method
